//-----------------------------------------------------------------------
//<copyright file="ChiTietBienBanKiemKeKho.cs" company="MinhSong">
//Copyright (c) MinhSong. All rights reserved.
//</copyright>
//-----------------------------------------------------------------------
using System;
using System.Runtime.Serialization;

namespace PMS.Entity
{
	public class ChiTietBienBanKiemKeKho: LuuKho
	{
		#region Variable Declarations

		private string m_MaBBKKK;
		private int m_MaLuuKho;
		private int m_TonSoSach;
		private int m_TonThucTe;
		private int m_ChenhLechThucTe;
		private string m_TinhTrang;

		#endregion

		#region Constructors

		public ChiTietBienBanKiemKeKho() {}
		public ChiTietBienBanKiemKeKho(
			string maBBKKK,
			int maLuuKho,
			int tonSoSach,
			int tonThucTe,
			int chenhLechThucTe,
			string tinhTrang)
		{
			m_MaBBKKK = maBBKKK;
			m_MaLuuKho = maLuuKho;
			m_TonSoSach = tonSoSach;
			m_TonThucTe = tonThucTe;
			m_ChenhLechThucTe = chenhLechThucTe;
			m_TinhTrang = tinhTrang;
		}

		#endregion

		#region Properties

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaBBKKK
		{
			get { return m_MaBBKKK; }
			set { m_MaBBKKK = value;
				OnPropertyChanged("MaBBKKK");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int MaLuuKho
		{
			get { return m_MaLuuKho; }
			set { m_MaLuuKho = value;
				OnPropertyChanged("MaLuuKho");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int TonSoSach
		{
			get { return m_TonSoSach; }
			set { m_TonSoSach = value;
				OnPropertyChanged("TonSoSach");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int TonThucTe
		{
			get { return m_TonThucTe; }
			set { m_TonThucTe = value;
				OnPropertyChanged("TonThucTe");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int ChenhLechThucTe
		{
            get { return (TonThucTe - TonSoSach); }
			set { m_ChenhLechThucTe = value;
				OnPropertyChanged("ChenhLechThucTe");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string TinhTrang
		{
			get { return m_TinhTrang; }
			set { m_TinhTrang = value;
				OnPropertyChanged("TinhTrang");
		}
		}


		#endregion
	}
}//End Class
